package com.libertyville.domain.orgmng;

import com.libertyville.domain.orgmng.validator.CommonValidator;
import com.libertyville.domain.orgmng.validator.OrgTypeValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OrgBuilderFactory {

    private CommonValidator commonValidator;
    private OrgTypeValidator orgTypeValidator;

    @Autowired
    public OrgBuilderFactory(CommonValidator commonValidator, OrgTypeValidator orgTypeValidator) {
        this.commonValidator = commonValidator;
        this.orgTypeValidator = orgTypeValidator;
    }

    public OrgBuilder create() {
        return new OrgBuilder(commonValidator, orgTypeValidator);
    }
}
